import React from 'react';

import Protocol from './pages/Protocol';
import Com from './pages/Com';
import CreateMap from './pages/CreateMap';
import CreateInteriorMap from './pages/CreateInteriorMap';
import ManageMap from './pages/ManageMap';
import ShowBattle from './pages/ShowBattle';
import BattleSet from './pages/BattleSet';
import ManageBattleSetting from './pages/ManageBattleSetting';
import Index from './pages/Index';
import BattleRecord from './pages/BattleRecord';
import ntry from './pages/ntry';
import CheckoutGun from './pages/CheckoutGun';
import BattleRecordReplay from './pages/BattleRecordReplay';
import BasicLayout from './layouts/BasicLayout';

import PokeSet from './pages/PokeCreate';
import PockShow from './pages/PockShow';

const Dashboard = React.lazy(() => import('./pages/Dashboard'));
const NotFound = React.lazy(() => import('./components/NotFound'));

const routerConfig = [
    {
        path: '/',
        component: BasicLayout,
        children: [
            {
                path: '/index',
                component: Index,
            },
            {
                path: '/map/create',
                component: CreateMap,
            },
            {
                path: '/map/createInteriorMap',
                component: CreateInteriorMap,
            },
            {
                path: '/map/manage',
                component: ManageMap,
            },
            {
                path: '/com',
                component: Com,
            },
            {
                path: '/protocol',
                component: Protocol,
            },
            {
                path: '/battle/set/create',
                component: BattleSet,
            },
            {
                path: '/battle/set/manage',
                component: ManageBattleSetting,
            },
            {
                path: '/battle/show',
                component: ShowBattle,
            },
            {
                path: '/battle/record',
                component: BattleRecord,
            },
            {
                path: '/battle/replay',
                component: BattleRecordReplay,
            },
            {
                path: '/dashboard',
              
                component: Dashboard,
            },
            {
                path: '/try',
                component: ntry,
            },
            {
                path: '/jq',
                component: CheckoutGun,
            },
            {
                path: '/poke/set/create',
                component: PokeSet,
            },
            {
                path: '/poke/show',
                component: PockShow,
            },
            {
                path: '/',
                component: Dashboard,
            },
            {
                component: NotFound,
            },
        ],
    },

];

export default routerConfig;
